package com.sjz.han.industry.internetmanage;

import android.content.Context;
import android.content.Intent;

import com.sjz.han.industry.activites.LoginActivity;
import com.sjz.han.industry.base.MyApp;

import org.json.JSONException;
import org.json.JSONObject;

public class ReqestUrl {
    public static final int PAGESIZE= 15;

    public static final String HEADER_CONTENT_TYPE= "application/json;charset=utf-8";

    //测试
//    public static final String BASE= "http://labahuadepengyou.in.8866.org:22405";
    public static final String BASE= "http://industryapp.com.cn";
    public static final String BASEH5= "http://h5.industryapp.com.cn";


    public static final String UPDATEVERSION_URL = BASE + "/profile/front/json.txt";//版本升级接口
    public static final String REGISTER_URL = BASE + "/front/user/register";//注册
    public static final String CHECKCODE_URL=BASE + "/front/user/sendSms";//获取验证码
    public static final String LOGIN_CODE_URL=BASE + "/front/user/login";//验证码登陆
    public static final String LOGIN_PWD_URL=BASE + "/front/user/pwdlogin";//密码登录
    public static final String HOME_URL=BASE + "/front/user/index";//首页接口
    public static final String GONGLUE_LIST_URL=BASE + "/front/user/strategy";//攻略列表接口
    public static final String GONGLUE_Detila_URL=BASE + "/front/user/banner";//攻略详情接口

    public static final String KEFU_JS_URL=BASE + "/front/user/customer";//客服介绍接口
    public static final String TJ_LY_URL=BASE + "/front/user/massage";//提交留言接口
    public static final String PERSONMSG_EDT_URL=BASE + "/front/user/updateUser";//修改个人信息接口
    public static final String PERSONMSG_URL=BASE + "/front/user/getUserByToken";//获取个人信息接口
    public static final String PHOTO_UPLOAD_URL=BASE + "/front/user/updatePhoto";//上传头像接口
    public static final String ALTER_PWD_URL=BASE + "/front/user/updatePwd";//修改密码接口
    public static final String UPLOAD_JHMSG_URL=BASE + "/front/user/updateUserFile";//上传激活信息接口

    public static final String DJH_HYLIST_URL=BASE + "/front/user/activationList";//待激活会员列表接口
    public static final String DJH_HYDTAIL_URL=BASE + "/front/user/getUserByUserId";//待激活会员详情接口
    public static final String DJH_HY_JH_URL=BASE + "/front/user/activation";//待激活会员激活接口
    public static final String BANKMSG_URL=BASE + "/front/user/getBank";//银行打款信息接口
    public static final String APP_JS_URL=BASE + "/front/user/appIntroduce";//项目介绍接口
    public static final String TEAM_GUANGBO_URL=BASE + "/front/user/teamRadio";//团队广播接口
    public static final String TEAM_Mytem_URL=BASE + "/front/user/myTeam";//我的团队接口
    public static final String JFRECORD_URL=BASE + "/front/user/myMoneyLog";//积分记录接口
    public static final String ALL_GB_URL=BASE + "/front/user/allRadio";//s所有广播接口
    public static final String WX_PAY_URL=BASE + "/front/user/wxPay";//微信支付接口
    public static final String ZFB_PAY_URL=BASE + "/front/user/aliPay";//支付宝支付接口

    public static final String DJS_MEMBERLIST_URL=BASE + "/front/user/repayMoneyList";//待结算会员列表接口
    public static final String UPLOAD_DJS_URL=BASE + "/front/user/repayPhoto";//上传待结算信息接口
    public static final String SFYYQ_NOTICE_URL=BASE + "/front/user/repayTips";//判断是否需要提示有逾期结算接口



    public static String rebacRequestJson(String rebackStr){
        if(rebackStr!=null&&!"".equals(rebackStr)){
//            try {
//                JSONObject jsonObject = new JSONObject(rebackStr);
//                int code =jsonObject.optInt("code");
//                 if(code==301){
//                   context.startActivity(new Intent(context, LoginActivity.class));
//                   con
//                 }
//            } catch (JSONException e) {
//                e.printStackTrace();
//            }
            return rebackStr;
        }else{
            return null;
        }
    }
}
